#ifndef GRAPHICSVIEW_H
#define GRAPHICSVIEW_H

#include <QGraphicsView>
#include <QWheelEvent>
#include <QtMath>
#include <QObject>

class GraphicsView : public QGraphicsView
{
    Q_OBJECT

private:
    int factor;

public:
    explicit GraphicsView(QWidget *parent = nullptr);

    ~GraphicsView();

    int getFactor();

    void setFactor(int _factor);

signals:
    //鼠标移动信号   2019-05-07 ludc
    void myMouseMoveEvent(QMouseEvent *e);



protected:
    virtual void wheelEvent(QWheelEvent *e);
    virtual void mouseMoveEvent(QMouseEvent *e);

};


#endif // GRAPHICSVIEW_H
